package com.ujoin.action.tag;

import org.springframework.beans.factory.annotation.Autowired;

import com.ujoin.bean.Tag;
import com.ujoin.service.TagService;
import com.ujoin.util.ActionEnhanced;

public class DeleteTagAction extends ActionEnhanced {

	private Tag tag;
	
	public Tag getTag() {
		return tag;
	}

	public void setTag(Tag tag) {
		this.tag = tag;
	}

	@Autowired
	private TagService tagService;
	
	@Override
	public String execute() {
		setJson(tagService.deleteTagByExample(tag));
		return SUCCESS;
	}
}
